package src.itheima02;

import java.util.*;

public class B {
    public static void main(String[] args) {
        Map<Integer,String> map=new LinkedHashMap();
        map.put(1,"yny");
        map.put(2,"wwd");
        map.put(3,"fff");
        map.put(4,"ttty");

        Set<Integer>set=map.keySet();

        Iterator<Integer>iterator=set.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

        Collection<String>collection=map.values();
        for (String s : collection) {
            System.out.println(s);
        }

    }
}
